package com.shaomengjie.meetingroom.net;

import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;

/**
 * Created by shaomengjie on 2017/1/9.
 */

public class RetrofitHelper {

    public static ServerApi getClient(){
        Retrofit retrofit = new Retrofit.Builder()
                .addConverterFactory(GsonConverterFactory.create())
                .baseUrl("http://beta.ecpay.1toall.net/")
                .build();
        ServerApi api = retrofit.create(ServerApi.class);
        return api;
    }
}
